package com.lottery.im.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * @author 作者 E-mail: yefl2064@gmail.com
 * @version 创建时间：2014-5-28 下午1:59:25
 * 内容全展开的gridview
 */
public class NoScrollGridView extends GridView {

  public NoScrollGridView(Context context) {
    super(context);
  }

  public NoScrollGridView(Context context, AttributeSet attrs) {
    super(context, attrs);
  }

  public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    int mExpandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
    super.onMeasure(widthMeasureSpec, mExpandSpec);
  }
}  